package cn.xn.hrms.infrastructure.dao;

import java.util.Collection;
import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xn.hrms.api.dto.res.PersonalTrainDTO;

/**
 * @author ysz
 */
public interface PersonalTrainDao {

    int insertSelective(PersonalTrainDTO record);

    PersonalTrainDTO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PersonalTrainDTO record);

    List<PersonalTrainDTO> selectAll(@Param("departmentId") Integer departmentId, @Param("personalId") Integer personalId,
                                     @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
    int updateIsDeletedByIdIn(@Param("updatedIsDeleted")Integer updatedIsDeleted,@Param("idCollection")Collection<Integer> idCollection);

}
